#@layout()
<script>
    $("#account-resetPass").validate({
        rules:{
                "oldpass":{
                    required:true
                },
                "newpass":{
                    required:true
                },
                "confirmpass":{
                    required:true
                }
        
        },
        messages:{

                "oldpass":{
                required:"请输入用户名..."
                },
                
                "newpass":{
                required:"请输入新密码..."
                },
                "confirmpass":{
                 required:"请输入确认密码..."
                 }
        },
        onkeyup:false,
        focusCleanup:true,
        success:"valid",
        submitHandler:function(form){
        var config = {
        "url":"/admin/account/doResetPass",
        data:$("#account-resetPass").serialize(),
        "method":"POST"
        };
        var backendTool = new BackendTool(config);
        backendTool.ajaxRequest();
        }
    });
</script>
#define main()
<form class="form form-horizontal" id="account-resetPass">
		<div class="row cl">
		    <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>用户密码：</label>
		    <div class="formControls col-xs-8 col-sm-9">
		        <input type="password" class="input-text" 
		               maxlength="50" placeholder="请输入用户密码..." id="oldpass" name="oldpass">
		    </div>
		</div>
	   <div class="row cl">
		    <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>新密码：</label>
		    <div class="formControls col-xs-8 col-sm-9">
		        <input type="password" class="input-text" 
		               maxlength="50" placeholder="请输入新密码..." id="newpass" name="newpass">
		    </div>
		</div>
		
		<div class="row cl">
		    <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>确认密码：</label>
		    <div class="formControls col-xs-8 col-sm-9">
		        <input type="password" class="input-text" 
		               maxlength="50" placeholder="请输入确认密码..." id="confirmpass" name="confirmpass">
		    </div>
		</div>
		 
		<div class="row cl">
		    <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
		        <input type="hidden" value="#(account.id??'')" id="id" name="account.id">
		        <input class="btn btn-primary radius" type="submit" value="  提交  ">
		    </div>
		</div>
 </form>
#end